package com.zhl.gradledemo.controller;

import com.zhl.gradledemo.util.HttpResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {


    @ResponseBody
    @GetMapping(value = "/getDemo" )
    public HttpResult getDemo() {
        log.info("进入getDemo方法");
        return HttpResult.suc("demo......");
    }


}
